prepairing to make it work with EC