merge dg and keygen
use absolute imports
create separate classes for workload and target settings