added history and fixed registr bug