inject stack and validator interfaces