added logging function
remove vcap2