takes user and env from vamps by submit_code