added first version of the stabilizer (untested)