added blf and eof templates and tried to fix the sync system