scripts for door opening learning