added initialization code for api validation