fix merge issues; add mwrate to brain; tested compile gcs and brain only