moved GDB stuff from main to a seperate file and added a GSP cmd