fix ask-prompt, remove defaults func, move functions around