fix bugs
input and block confs does not work well...