begin adding mate/mlib setup