updated scotty to detect file locations
fixed initialization for scotty