reorganized c files, refactored native object proxy