changing api

Signed-off-by: Daniel Newns <dan@higgsdesign.com>