monitoring rewrite, improved performance on deploys, several fixes