git code cleanup, unchecked types etc