patches for active resource 4, errors parsing still buggy