handle exercise submissions