implemented multi-segment molecules along with configurability