file mapping partially implemented