dynamic context and port assign