server & main ready for test