added if statment to check if PUBLIC_PATH is set