import code from wallproxy