Add onlinesrc directive and service