WIP: read/write epochs