added config.media_dir and fixed shuffle