removed getcwd nonsense, mightve been cause of problem