added logging to dynamic route