change some to option to avoid null pointer exceptions when accessing adamrecord fields