Creating directories and hack for url