refactored mb and cep to separate scripts