move has_draft to lib