import code from a2sc