return res to client
add test for shell platform