updated config, added multiple targets, improved stability