added metadir support from cmd and sockets