check for various formats