slight api change, docs update