add possibility for multiple publish objects