updating the mway script to how i use it