switch to glfw