main form to fix --rest ok