cleanup
included adapter and stdin/out