moved to lib to avail it for sharing with host app