more decodeFile stuff