rewrite node backend