Fixed server functions
Added smart package files