parser for console. initial