make sure files are synced to output dir
work on this post