ticket:9 management command
ticket:9 fixes + test
ticket:9 fixes