move attributes to module