updated to use internal stocks instead of natives
commented out debug code