made line plugging singleton pattern