extract file to correct directory