incremental changes to mlp.py