fixed deprecated for generate commands