moving configuration init to vars