dealt with some more error cases @ custom types
started type matching