updated script for cm10.1