fix dependency
fix __FILE__ bug
load local lib if possible