going to add generic handlers for commands.
added support for generic methods.
checks generic grammar during optimization.