initial logic input for query strings