added some security util methods