add init.R hook and use uuid package for UUIDs