crappy version of module and alg. Dialog done. get/set algo within this algo?