add class << self idiom to new command