changed all includes to require_once realpath