fixed repo class to actually make sense