added code from main public site as subdirectory - not the way it's actually structured on the site