remove unused functions. fix path.