adding config and scheduled event