workaround query limits