debug and minor changes to path