adapt scaffold script to new pkg layout