rewritten nyxi pretty much