fix appcode generation file
add playground support for xopen