updated management commands to use format and fixed 2.6 support