refactored janus logic

really REALLY changed styles around