work on plan and sdl stuff