fixed problems with calls and paths THANK YOU STEVE
everything but cast works