patch public methods; fixes #6

related to cortexjs/cortex#291