add scheduler to keep app alive