shadow tweaks and cleanup; linking in Lua