made clip a 'private' method
fixed issue w/ url not being defined
fixed funny case w/ directory getting lost in url.resolve