server was separated from main