api base class name chage, minor update
error class
move config from api to parent directory