extend profile builder to support both v0.2 and v0.3