more fixes to build permissions