ugly hack; just works