move cert to input
fix syntax error