fix some relative path issues