made changes to the use of INV_URL, closes #197