working machine prototype in C on top of libScarab