got repositories working. started cleaning up other code