fixed secure issues