Add exec and env

Add exec and env