misc tweaks to lambdanative scripts and templates