improved the security provider