added registrants and cleaned up localstorage detection