write a bit
cleanup