small changes to secure and docstrings