put in some platform detecting logic