added new methods to libjs