fixing static paths and adding extra debug