better check for nests in parse method