use gear dir as file path