added uploads_dir variable