Local and global problems of singularity theory