adding support for common js lib