updated lib file to handle full url