got it working on the emulator, lets see if it'll work altogether