added external modules directory
fixed php notice error