initialise repository