added some exception handling to private methods, commented test hash