add submit command, bugfixes