synchronised access to all non thread-safe resources