implemented dyn f sync; cleanup