WIP; clearing up referenceUrl nil errors