Stripping down code to isolate rust bug
throwaway this branch