add scheduler to keep server running