fixed up adapt namespace