Error managemement ; preparation of mlp with args