add windowing supporgt, tho broken right now