improved parsing of photolysis