fixed handling of list, improved events, started newType