added linux support for new code