updated mina, web and imp code