add ERRLOG; bugfix: include file
update all shell to set BASE_DIR and load include