type validations to 'fetch' operator, fixes in logical operators