updating modules to the new api