ugly flags for similar and lookup using ddj without breaking it into another module