new functions getRequest and getServer