some project fixes, add needed flags, change encoding format