convert local into a runnable module