fixing some missed arguments passing
quick implementation of finding all functions inside a directory