fixed homepage root conflict
got rid of class variables