add error when mb functions are missing + CS fixes