cleaning up extern_model and typos