format source
fixes relating to changing parent, also throwing notifications.
formatting.