add automatic loggin for policy returns