proper build_id check