Adds ctypes, jsm stuff
Fix perms