synchronize functions + parsin fg ascii escape codes