adds separate query chunk and imap