synchronous and asynchronous file access