Shanghai in lines