fix config, move to java spring config