got it basically working