fixed scoping issue when concated with other libs