beautiful hack for #302