Fix bugs, add secure_pipelight script