fix syntax bugs and actually install logstasg