door opening script with quality measure