Supporting carton plenv etc

Fixed #1