switching app key by environment