adapt namespace and add dependency