adding Apache License and indirect memory call for daemon process