path issue in main script