working on generate command