makefile is verbose
use shared library for cuda part
switch out to new function