experimental scripts and mirror function