moved call on static object to synchronized block
restored imports