move all code that does any calculations out of android package