move attribute handlers to BEGIN phase