dev test is working but could use some polishing and prob refactoring.