todo functions with working prompt for writefile