add ugly flags until i find better ones