add security functionality