sm lib inside