script that creates dir per func