add check-dir and create