market functionality - work in progress