fix ecain stuff