further work on getting gpt working again