use name instead of displayName, main dialog crash fix
added BSD licence