All config now in java