add security mapping logic.