add example for deploy. eliminated circular dependency