fixes for local files