added some security features