make it possible to override algorithm in config
fixed ApplicationMasterSpec