add protection to api base load/dump