main stub