nicer console info, handles directories gracefully, replace usecase