started working on addon code