add scheduler to run periodically