changes to work like the calls to the android code