port to android. kinda works