added background threading for android