added metric gen script