added useful parts of janus