simple file api wrapper