refactored _parse to run isinstance less.