task assignment logic modified for data from app engine