fix bugs and add annotation of portal configuration