a bit cleaner path construction