cleanup, epoch should be an int