server start, variables bugfix, common log functions