getting scripts from directory