added fresh copy of base code