very ugly hack