memory fixes and updating Core