make default location optional