implemented attr_neat that handles defaults and some additional functionality for hooks