cleaned up excess .net code