package url in layout fixed [closes #384], tests incl