improved dynamo reading code