fixes #6 with flags and some layouts