debugging records controller, WIP commit (still not working properly)