add security to lib