moved "use open" to main template script