wraps server side logic in immediately invoked functional expression, updates readne