fix some interfacing problem