added edgemask script for avc