extracted shell script form hook_create, hook creates just copys now