Ajusting script for path loading