version 2: working version with scheduler notifications and complete logs