looks like an ugly hack