new script for door opening