use proper hash accessors
fixed sort and main page