hacky, possibly buggy Valkyrie implementation