more factory and specs debugging; still WIP