james | making environments serializable