improve security.j2