transform to string before escape
add type check to pageSize cacheSize