got it sort of working