adds some const, adds writing registers through P and if thats not working through G