first MACS attempt (a lot of bugs)