work on force / error routines, start transition from C to C++