add some functions which are normally not exported to jave or python