make sure libs are only loaded once