fast fix (not the best) for admin_dir global