added bool template specification and missing onStart callback