Support custom flags for sandbox and app layers