isolate lib/attributes to a new module