ugly workaround