begin creating hooks for cmd