fix some code dependencies