make handle functions into a .so file