fixed issues and created magic paths