changed position of the return file and enabled xml printing