requite ostruct out
get rid of openstruct and use @attributes instead of @table
perftools out
avoid iterate and update the attributes hash