refactored zope method
added log to zope function
unified command line and zope calls