moved some variables to a shared module