More environment integration and interaction with both template and adapter