added inverse handler
tidying up of logging