fixing issues with reverting code base