correctly stub package methods