fixed bugs in paths + compilation