adopted generator command to more solid base
added basic support for converting types