moved byod library to head, added 404 and invalid code catching to dropbox flow