adding index and base files