some refactoring
finished IO daemon
finished refactoring