added the ability to create stubs if necessary