refactored areis and build_detail