basic framework
basic main daemon