add domain path, fix action hook for proper call with class