added preliminary events and marker drawing