fix post-install scripts - still needs work