added mapped file support