migrating afc to markdown