some more guarding against nil frames that really should not be needed