added logging for name mask