move backend over from legacy2
remove obsolete code