some "ugly" workaround