refactored to build with linux for Oracle Linux 6.4