more or less working submit and report part