add server res and line layout