added simple scheduler