implemented interactive shell with cmd.Cmd instead fo plain realline