tuning environment to work with spring