add viewport
add AppFog env support