prepare repository