removed dependency on deprecated platform_lib