create repository with flags
fix code