added the generate_functions command