got a basic version working