added refinemain to repository