turn scripts into module