adding url shorting and directory support