added hash_base system (base refs gets stored in the _SESSION)