remove checkdir before creating it