add support for 'submit'