add security parsing logic.