update init function for android client