fixed some syntax errors, make more install-friendly