refactor magicmock

add magicmocksetup and magicmock commands