support for changing target if none exists

and minor logging changes to prevent logging large request bodies