add allow_blank option (default is true to keep backward compatibility)