theme url function more stable, logging added on error in diazo transformation