remove obsolete referer session code and add default data