corrected PEN and fixed entry.sh variables