add getregisters fn to return currently configured registers