some fixes. fbmachine better implemented, but not yet finished