added split on ; also for queries, only send results of last query back