added platform stuff - see if will be used on PGB