file initialization functions - with missing variables, moved Request function