cleanup
init
write
poll
read