sophia: remove old code