fixed path building
better debugging