yeah it's a complete rewrite