added error handling workaround and documentation on static methods