startdir="$PWD"
appdir=`readlink -f "$0"`
appdir=`dirname "$appdir"`
cd "$appdir"
