final touches for metric/stat script and the sim env is locked.