working version, adding troubleshooting

wuwuwuwuwu