in/out command hooks added