added timeout in getReturnMessage