moved $(func) to new file
wip