last bits wot work in both modes