make sure we have library before loading it