move locallib api to a static class