added safety monitor