added logging and request key