local: implemented most of the stubs