use strtol and better handle default