added validity to publci API