init dynamic edges
idea for compiling edges