added mget support
removed redundant method
added support for publish