adding auto loading for lib