mainframe prototype mostly implemented