some bugfixes for nullpart and general reorganisation of rendering