deal with nil in dev