share code on all platforms