clone of https://code.google.com/p/fabricate/ so it can be easier to maintain