write routes