console : adding new command, cleaning code