made task search more flexible