implemented some API funcs, added whitelist API