added options (FOP selection) and tools (AVG); some debugging